Optimal. Leaf size=138 \[ \frac{\sqrt{\frac{\pi }{2}} e^{\frac{2 b c}{d}-2 a} \text{Erf}\left (\frac{\sqrt{2} \sqrt{b} \sqrt{c+d x}}{\sqrt{d}}\right )}{4 \sqrt{b} \sqrt{d}}+\frac{\sqrt{\frac{\pi }{2}} e^{2 a-\frac{2 b c}{d}} \text{Erfi}\left (\frac{\sqrt{2} \sqrt{b} \sqrt{c+d x}}{\sqrt{d}}\right )}{4 \sqrt{b} \sqrt{d}}+\frac{\sqrt{c+d x}}{d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.214058, antiderivative size = 138, normalized size of antiderivative = 1., number of steps used = 7, number of rules used = 5, integrand size = 18, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.278, Rules used = {3312, 3307, 2180, 2204, 2205} \[ \frac{\sqrt{\frac{\pi }{2}} e^{\frac{2 b c}{d}-2 a} \text{Erf}\left (\frac{\sqrt{2} \sqrt{b} \sqrt{c+d x}}{\sqrt{d}}\right )}{4 \sqrt{b} \sqrt{d}}+\frac{\sqrt{\frac{\pi }{2}} e^{2 a-\frac{2 b c}{d}} \text{Erfi}\left (\frac{\sqrt{2} \sqrt{b} \sqrt{c+d x}}{\sqrt{d}}\right )}{4 \sqrt{b} \sqrt{d}}+\frac{\sqrt{c+d x}}{d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3312
Rule 3307
Rule 2180
Rule 2204
Rule 2205
Rubi steps
\begin{align*} \int \frac{\cosh ^2(a+b x)}{\sqrt{c+d x}} \, dx &=\int \left (\frac{1}{2 \sqrt{c+d x}}+\frac{\cosh (2 a+2 b x)}{2 \sqrt{c+d x}}\right ) \, dx\\ &=\frac{\sqrt{c+d x}}{d}+\frac{1}{2} \int \frac{\cosh (2 a+2 b x)}{\sqrt{c+d x}} \, dx\\ &=\frac{\sqrt{c+d x}}{d}+\frac{1}{4} \int \frac{e^{-i (2 i a+2 i b x)}}{\sqrt{c+d x}} \, dx+\frac{1}{4} \int \frac{e^{i (2 i a+2 i b x)}}{\sqrt{c+d x}} \, dx\\ &=\frac{\sqrt{c+d x}}{d}+\frac{\operatorname{Subst}\left (\int e^{i \left (2 i a-\frac{2 i b c}{d}\right )-\frac{2 b x^2}{d}} \, dx,x,\sqrt{c+d x}\right )}{2 d}+\frac{\operatorname{Subst}\left (\int e^{-i \left (2 i a-\frac{2 i b c}{d}\right )+\frac{2 b x^2}{d}} \, dx,x,\sqrt{c+d x}\right )}{2 d}\\ &=\frac{\sqrt{c+d x}}{d}+\frac{e^{-2 a+\frac{2 b c}{d}} \sqrt{\frac{\pi }{2}} \text{erf}\left (\frac{\sqrt{2} \sqrt{b} \sqrt{c+d x}}{\sqrt{d}}\right )}{4 \sqrt{b} \sqrt{d}}+\frac{e^{2 a-\frac{2 b c}{d}} \sqrt{\frac{\pi }{2}} \text{erfi}\left (\frac{\sqrt{2} \sqrt{b} \sqrt{c+d x}}{\sqrt{d}}\right )}{4 \sqrt{b} \sqrt{d}}\\ \end{align*}
Mathematica [A] time = 0.118473, size = 141, normalized size = 1.02 \[ \frac{e^{2 a-\frac{2 b c}{d}} \sqrt{-\frac{b (c+d x)}{d}} \text{Gamma}\left (\frac{1}{2},-\frac{2 b (c+d x)}{d}\right )}{4 \sqrt{2} b \sqrt{c+d x}}-\frac{e^{\frac{2 b c}{d}-2 a} \sqrt{\frac{b (c+d x)}{d}} \text{Gamma}\left (\frac{1}{2},\frac{2 b (c+d x)}{d}\right )}{4 \sqrt{2} b \sqrt{c+d x}}+\frac{\sqrt{c+d x}}{d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 0.088, size = 0, normalized size = 0. \begin{align*} \int{ \left ( \cosh \left ( bx+a \right ) \right ) ^{2}{\frac{1}{\sqrt{dx+c}}}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.56816, size = 144, normalized size = 1.04 \begin{align*} \frac{\frac{\sqrt{2} \sqrt{\pi } \operatorname{erf}\left (\sqrt{2} \sqrt{d x + c} \sqrt{-\frac{b}{d}}\right ) e^{\left (2 \, a - \frac{2 \, b c}{d}\right )}}{\sqrt{-\frac{b}{d}}} + \frac{\sqrt{2} \sqrt{\pi } \operatorname{erf}\left (\sqrt{2} \sqrt{d x + c} \sqrt{\frac{b}{d}}\right ) e^{\left (-2 \, a + \frac{2 \, b c}{d}\right )}}{\sqrt{\frac{b}{d}}} + 8 \, \sqrt{d x + c}}{8 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.21131, size = 369, normalized size = 2.67 \begin{align*} \frac{\sqrt{2} \sqrt{\pi }{\left (d \cosh \left (-\frac{2 \,{\left (b c - a d\right )}}{d}\right ) - d \sinh \left (-\frac{2 \,{\left (b c - a d\right )}}{d}\right )\right )} \sqrt{\frac{b}{d}} \operatorname{erf}\left (\sqrt{2} \sqrt{d x + c} \sqrt{\frac{b}{d}}\right ) - \sqrt{2} \sqrt{\pi }{\left (d \cosh \left (-\frac{2 \,{\left (b c - a d\right )}}{d}\right ) + d \sinh \left (-\frac{2 \,{\left (b c - a d\right )}}{d}\right )\right )} \sqrt{-\frac{b}{d}} \operatorname{erf}\left (\sqrt{2} \sqrt{d x + c} \sqrt{-\frac{b}{d}}\right ) + 8 \, \sqrt{d x + c} b}{8 \, b d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\cosh ^{2}{\left (a + b x \right )}}{\sqrt{c + d x}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\cosh \left (b x + a\right )^{2}}{\sqrt{d x + c}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]